local ads__yongcai = fk.CreateSkill{
  name = "ads__yongcai",
  tags = { Skill.Compulsory },
}

ads__yongcai:addEffect("prohibit", {
  priority = 1000,
  is_prohibited = function(self, from, to, card)
    if card and card.type == Card.TypeTrick and from then
      local room = Fk:currentRoom()
      local yongcai_players = table.filter(room.alive_players, function(p)
        return p:hasSkill(ads__yongcai.name)
      end)
      if #yongcai_players > 0 and not table.contains(yongcai_players, from) then
        local distance = from:distanceTo(to)
        return distance ~= 1
      end
    end
    return false
  end,
})


Fk:loadTranslationTable{
  ["ads__yongcai"] = "庸才",
  [":ads__yongcai"] = "锁定技，其他角色使用单目标锦囊牌时只能指定距离为1的角色为目标。",
}



return ads__yongcai
